export const onAdd = (value) => {
  return {
    type: 'ADD',
    payload: {
      value,
    }
  }
}

export const asyncQuery = () => {
  return (dispatch) => {
    setTimeout(() => {
      dispatch({
        type: 'ADD',
        payload: {
          value: '234',
        }
      })
    }, 1000)
  }
}